package com.ruoyi.flowable.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 事项业务对象 flow_app
 *
 * @author zxw
 * @date 2023-03-21
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class AppBo extends BaseEntity {

    /**
     * 事项ID
     */
    private Long appId;

    /**
     * 事项名称
     */
    @NotBlank(message = "事项名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String appName;

    /**
     * 事项状态
     */
    private String status;

    /**
     * 事项类型
     */
    @NotBlank(message = "事项类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 事项图标
     */
    @NotBlank(message = "事项图标不能为空", groups = { AddGroup.class, EditGroup.class })
    private String logo;

    /**
     * 开始时间
     */
    private Date startTime;

    /**
     * 结束时间
     */
    private Date endTime;

    /**
     * 事项描述
     */
    private String description;

    /**
     * 附件
     */
    private String attach;

    /**
     * 表单编码
     */
    @NotNull(message = "表单编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long formId;

    /**
     * 使用版本
     */
    private Long useVersion;


}
